#include"myEasyX.h"
using namespace std;
int main()
{
	srand(time(NULL));
	MAP game;
	Easyx easyx;
	easyx.initeasyx();
	BeginBatchDraw();
	easyx.loadimg();
	game.newelem();
	for(char ch = '\0';;)
	{
		game.newelem();
		
		easyx.mapdraw(game);
		easyx.scoredraw(game.scorecnt());
		FlushBatchDraw();
		if (!game.GG())
		{
			ch = _getch();
			game.move(ch);
		}
		if (game.GG())
			easyx.GGselect(game,game.scorecnt());
	
		
	}
	return 0;
}
